package com.aaa.behind.controller;


import com.aaa.behind.service.IUUserInfoService;
import com.aaa.entity.UUserInfo;
import com.aaa.util.PageInfo;
import com.aaa.util.Result;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;

import org.springframework.web.bind.annotation.RestController;

/**
 * <p>
 *  前端控制器
 * </p>
 *
 * @author whj
 * @since 2023-01-30
 */
@RestController
@RequestMapping("/u-user-info")
public class UUserInfoController {

    @Autowired
    private IUUserInfoService userInfoService;

    @PostMapping("getUserAll")
    public Result getUserAll(PageInfo pageInfo, UUserInfo userInfo,String startTime,String endTime){
        return new Result(userInfoService.getPageData(pageInfo,userInfo,startTime,endTime));
    }


    @PostMapping("updateByid")
    public Result updateByid(UUserInfo userInfo){
        return new Result(userInfoService.updateById(userInfo));
    }
}

